/*****
author : sailing
date: 2016/11/20
******/
import Config from './config'
import tools from './tools'
import data from './data'
export default {
    resetLineStyle(cy) {
        data.cy.edges(function(i, edge) {
            edge.style(tools.resetLine())
        })
    },
    setImage(cy) {
        cy.nodes(function(i, node) {
            var data = node.data()
            if (data['type']) {
                var image = tools.getImgPath(data['type'])
                node.style({
                    'width': '35px',
                    'height': '35px',
                    'background-image': image
                })
            }
        })
    }
}